package cn.sylinx.horm.core.common;

import java.sql.Connection;
import java.sql.SQLException;

public interface PreparedCallable<T> {

    /**
     * 支持记录sql的调用
     * 
     * @param datasourceName
     * @param connection
     * @param sql
     * @param params
     * @return
     * @throws SQLException
     */
    public T call(String datasourceName, Connection connection, String sql, Object[] params) throws SQLException;

}
